using RAG.Domain.Entities.App;
using RAG.Application.Dtos.Permission;

namespace RAG.Application.Services.Interfaces;

public interface IPermissionService
{
    // 获取所有权限
    Task<IEnumerable<PermissionDto>> GetAllPermissionsAsync();
    
    // 根据ID获取权限
    Task<PermissionDto?> GetPermissionByIdAsync(Guid id);
    
    // 创建权限
    Task<PermissionDto> CreatePermissionAsync(PermissionDto permissionDto);
    
    // 更新权限
    Task<PermissionDto> UpdatePermissionAsync(Guid id, PermissionDto permissionDto);
    
    // 删除权限
    Task<bool> DeletePermissionAsync(Guid id);
} 